

#import <Foundation/Foundation.h>

#define KUChannel_id  @"channel_id"
#define KUChannel_token  @"channel_token"
#define KURedis_token   @"redis_token"
#define KUPassword   @"password"
#define KUAccount   @"account"
#define KUFExit @"exit"
@interface UFUserDefault : NSObject
{
    NSUserDefaults *userDefaults;
}


@property (nonatomic, strong) NSDictionary * dict;


//个人账号信息
@property(nonatomic,strong) NSString *account;  /* 帐号 */
@property(nonatomic,strong) NSString *password;  /* 密码 */
@property(nonatomic,strong) NSString *channel_id;
@property(nonatomic,strong) NSString *channel_token;
@property(nonatomic,strong) NSString *redis_token;


/*是否退出*/
@property(nonatomic,strong)NSString *exit;
+ (id)shared;

- (void)updateUserDefaults:(id)value forKey:(NSString *)key;
- (void)updateUserDefaultsBoolValue:(BOOL)value forKey:(NSString *)key;
- (id)userDefaultValueForKey:(NSString *)key;

- (void)resetLoginInfos;//退出登
- (void)saveUser;//保存用户
- (void)autoLoginUser;//自动登录

@end
